#include "Vector.h"
#include <cmath>
#include <iostream>

using namespace std;

Vector::Vector(): m_x(0), m_y(0)
{

};

Vector::Vector(int x, int y): m_x(x), m_y(y)
{

};

float Vector::getLenght()
{
    float lenght;
    lenght = sqrt(m_x*m_x + m_y*m_y);
    return lenght;
}

int Vector::getX()
{
    return m_x;
}

int Vector::getY()
{
    return m_y;
}

void Vector::setPos(int x, int y)
{
    m_x = x;
    m_y = y;
}

void Vector::changePos(int x, int y)
{
    m_x += x;
    m_y += y;
}

Vector::~Vector()
{
    //dtor
}
